<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>后台管理系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/static/plugs/layui/css/layui.css" media="all">
    <script src="/static/plugs/layui/layui.js"></script>
    <script src="/static/plugs/jquery/jquery.min.js"></script>
    <script src="/static/plugs/admin/js/admin.js"></script>
    <link rel="stylesheet" href="__PUBLIC__/plugs/admin/css/admin.css" media="all">
    <link rel="stylesheet" href="/static/plugs/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
    <![endif]-->
</head>
<body class="layui-layout-body">
<div id="LAY_app" class="layadmin-tabspage-none "><!--layadmin-side-shrink-->
    <div class="layui-layout layui-layout-admin">
        <!-- 头部区域 start-->
        {include file="public/header" /}
        <!-- 头部区域 end-->
        <!--侧边标签 start-->
        {include file="public/menu" /}
        <!--侧边标签 end-->
        <!-- 主体内容 start-->
           {__CONTENT__}
        <!-- 主体内容 end-->
    </div>
    <!--底部标签 start-->
    {include file="public/footer" /}
    <!--底部标签 end-->
</div>

<script>
    layui.use(['element', 'layer'], function () {
        var $ = layui.jquery,
            element = layui.element,
            layer = layui.layer;
        $('.login-out').on("click", function () {
            var url = '/manage/Index/logout';
            $.post(url, function (res) {
                layer.msg('退出登录成功', function () {
                    window.location = '/manage/login/index';
                });
            }).fail(function () {
                layer.alert('接口有误');
            })

        });
    });
</script>
</body>
</html>
